﻿namespace OpenSage.Logic.Object.Helpers;

// I found, in .sav files, modules called ModuleTag_SMCHelper.
// Searching in the RA3 SDK, I found ObjectSMCHelper, with the comment
// SMC = Special Model Condition, noting that this relates to timed model conditions.
// In RA3 XSDs, ObjectSMCHelperModuleData inherits from ObjectHelperModuleData,
// so that's the hierarchy I've used here.
internal sealed class ObjectSpecialModelConditionHelper : ObjectHelperModule
{
    // TODO
    public ObjectSpecialModelConditionHelper(GameObject gameObject, IGameEngine gameEngine) : base(gameObject, gameEngine)
    {
    }

    public override UpdateSleepTime Update()
    {
        // TODO(Port): Use correct value.
        return UpdateSleepTime.None;
    }

    internal override void Load(StatePersister reader)
    {
        reader.PersistVersion(1);

        reader.BeginObject("Base");
        base.Load(reader);
        reader.EndObject();
    }
}
